{extend name="_public/main" /}

{block name="seo"}
<title>{:get_site_config('site_name')}{neq name="page->getCurrentPage()" value="1"} - 第{$page->getCurrentPage()}页{/neq} - 奋进的程序员</title>
{/block}

{block name="main-area"}
<section class="index-main">
    <div class="container">
        <div class="row">
            <div class="col-md-8">
                {volist name="list" id="vo"}
                <article class="article-list">
                    <h1><a href="{:url('blog/article/index',['id'=>$vo.id])}" title="{$vo.title}">{$vo.title}</a></h1>
                    <div class="article-tags">
                        {volist name="vo.tags" id="tag"}
                        <a href="{:url('blog/tags/index',['id'=>$tag.id])}" class="badge badge-info" title="{$tag.tag} 标签下的文章">{$tag.tag}</a>
                        {/volist}
                    </div>
                    {notempty name="vo.thumb"}
                    <div class="article-thumb"><img src="{$vo.thumb}" alt="{$vo.title}" title="{$vo.title}"/></div>
                    {/notempty}

                    <div class="article-abstract">
                        {$vo.content|strip_tags|mb_substr=0,120}…
                    </div>
                    <div class="article-info">
                        <span>{$vo.create_time|date='Y-m-d H:i'}</span>
                        <span>热度 {$vo.click} ℃</span>
                        <span><a href="{:url('blog/article/index',['id'=>$vo.id])}">全文链接</a></span>
                    </div>
                </article>
                {/volist}

                {$page->render()|raw}

            </div>
            <div class="col-md-4">
                {:widget('blog/tags_cloud')}
                {:widget('blog/latest_reply')}
            </div>
        </div>
    </div>
</section>
{/block}